package com.utils.wechat;

import com.base.Constants;
import com.bean.LogintokenContent;
import com.bean.LogintokenSource;
import com.bean.wechat.ResultInfo;
import com.bean.wechat.WechatContent;
import com.bean.wechat.WechatWebsite;
import com.mapper.mysql.UserInfoMapper;
import com.mapper.repository.mysql.LogintokenContentRepository;
import com.mapper.repository.mysql.WechatContentRepository;
import com.mapper.repository.mysql.WechatWebsiteRepository;
import com.service.LogintokenService;
import com.utils.BaseUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;
import java.util.UUID;

//来源于免费API的图库  获取 随机女神  随机风景  随机帅哥  随机动漫
@Service
public class WechatStrategyFreeApiTu implements WechatStrategy  {


    @Autowired
    private BaseUtils baseUtils;

    @Override
    public void returnMsg(ResultInfo resultInfo,String content) {

        //返回内容
        resultInfo.setReturnMethod("news");
        resultInfo.setTitle("点击查看"+content);
        resultInfo.setDescription("点击查看"+content);
        resultInfo.setPicUrl(baseUtils.getBaseConfigByName("wechat_search_png"));
        //resultInfo.setUrl(baseUtils.getWechatUrl()+"?wid="+id);
        resultInfo.setUrl(baseUtils.getWechatUrl()+"freeapi/randomGodess.html");

    }

}
